package com.baichang.taoshunda.entity;

import com.baichang.framework.annotation.jdbc.Id;
import com.baichang.framework.annotation.jdbc.Table;
import com.baichang.framework.entity.BaseEntity;

import java.math.BigDecimal;
import java.util.Date;


@Table(name = "t_order")
public class Order extends BaseEntity {

    private Integer id;
    /**
     * 订单号
     **/
    private String orderNumber;
    /**
     * 买家id
     **/
    private Integer buyerId;
    /**
     * 卖家id
     **/
    private Integer sellerId;
    /**
     * 配送员id
     **/
    private Integer disId;
    /**
     * 订单状态
     **/
    private Integer orderState;
    /**
     * 收货人名称
     **/
    private String name;
    /**
     * 收货地址
     **/
    private String goodsAdress;
    /**
     * 收货人手机号
     **/
    private String receiverPhone;
    /**
     * 交易方式
     **/
    private Integer payType;
    /**
     * 备注
     **/
    private String remark;
    /**
     * 小费
     **/
    private BigDecimal fee;
    /**
     * 配送费
     **/
    private BigDecimal dispatching;
    /**
     * 总金额
     **/
    private BigDecimal allMoney;
    /**
     * 所有商品的总价
     **/
    private BigDecimal goodsAllMoney;  //除去配送费和消费外的金额
    /**
     * 创建时间
     **/
    private Date created;
    /**
     * 送货时间
     **/
    private Date sendTime;
    /**
     * 退货原因
     **/
    private String reason;
    /**
     * 送达时间
     **/
    private Date endTime;
    /**
     * 交易订单
     **/
    private String payOrderkid;
    /**
     * 订单名称
     **/
    private String orderName;

    /**
     * 距离
     */
    private Double distance;
    /**
     * 计划配送时间
     */
    private Date plannedDeliveryTime;
    /**
     * 申请退货时间(申请退款）
     */
    private Date applyReturnTime;
    private BigDecimal subMoney;
    /**
     * 是否无理由退货  1支持2不支持
     *
     * @return
     */
    private int refunds;
    /**
     * 用户经度
     */
    private Double ulng;
    /**
     * 用户纬度
     */
    private Double ulat;

    /**
     * 退款状态
     */
    private Integer backOrderState;
    /**
     * 订单类型 1   普通订单  2预约订单
     */
    private Integer orderType;

    /**
     * 商家预计收入
     */
    private BigDecimal bussGetMoney;

    /**
     * 平台预计收入
     */
    private BigDecimal platformGetMoney;
    private Integer userStatus;
    private Integer companyStatus;
    /**
     * 发票抬头
     **/
    private String invoiceHead;
    /**
     * 发票号
     **/
    private String invoiceNumber;
    /**
     * 拒单原因
     **/
    private String singleReason;
    /**
     * 退款原因
     */
    private String reasonRefund;
    /**
     * 是否参与活动 0未参与  1参与
     */
    private Integer isActivity;
    /**
     * 商家是否确认归还货物  申请退款，配送员归还货物   0未确认  1商家确认  2配送员确认
     */
    private Integer companyIsSure;
    /**
     * is_activity	int	1	0	-1	0	0	0	0		0	是否参与活动  0未参与  1参与				0	0
     * red_paclet_money	decimal	11	2	-1	0	0	0	0		0	红包金额   替代支付金额				0	0
     * return_money	decimal	11	2	-1	0	0	0	0		0	退款金额（有红包的时候所有支付金额减去红包）				0	0
     * <p>
     * 退款照片
     */
    private BigDecimal redPacketMoney;
    /**
     * 退款照片
     */
    private BigDecimal returnMoney;
    /**
     * 退款照片
     */
    private String reasonImg;
    /**
     * 换货照片
     */
    private String barterReason;
    /**
     * 换货照片
     */
    private String barterImg;

    @Id
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public BigDecimal getSubMoney() {
        return subMoney;
    }

    public void setSubMoney(BigDecimal subMoney) {
        this.subMoney = subMoney;
    }

    /**
     * 订单号
     **/
    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    /**
     * 买家id
     **/
    public Integer getBuyerId() {
        return buyerId;
    }

    public void setBuyerId(Integer buyerId) {
        this.buyerId = buyerId;
    }

    /**
     * 卖家id
     **/
    public Integer getSellerId() {
        return sellerId;
    }

    public void setSellerId(Integer sellerId) {
        this.sellerId = sellerId;
    }

    /**
     * 配送员id
     **/
    public Integer getDisId() {
        return disId;
    }

    public void setDisId(Integer disId) {
        this.disId = disId;
    }

    /**
     * 订单状态
     **/
    public Integer getOrderState() {
        return orderState;
    }

    public void setOrderState(Integer orderState) {
        this.orderState = orderState;
    }

    /**
     * 收货人名称
     **/
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 收货地址
     **/
    public String getGoodsAdress() {
        return goodsAdress;
    }

    public void setGoodsAdress(String goodsAdress) {
        this.goodsAdress = goodsAdress;
    }

    /**
     * 收货人手机号
     **/
    public String getReceiverPhone() {
        return receiverPhone;
    }

    public void setReceiverPhone(String receiverPhone) {
        this.receiverPhone = receiverPhone;
    }

    /**
     * 交易方式
     **/
    public Integer getPayType() {
        return payType;
    }

    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    /**
     * 备注
     **/
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 小费
     **/
    public BigDecimal getFee() {
        return fee;
    }

    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    /**
     * 配送费
     **/
    public BigDecimal getDispatching() {
        return dispatching;
    }

    public void setDispatching(BigDecimal dispatching) {
        this.dispatching = dispatching;
    }

    /**
     * 总金额
     **/
    public BigDecimal getAllMoney() {
        return allMoney;
    }

    public void setAllMoney(BigDecimal allMoney) {
        this.allMoney = allMoney;
    }

    /**
     * 所有商品的总价
     **/
    public BigDecimal getGoodsAllMoney() {
        return goodsAllMoney;
    }

    public void setGoodsAllMoney(BigDecimal goodsAllMoney) {
        this.goodsAllMoney = goodsAllMoney;
    }

    /**
     * 创建时间
     **/
    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    /**
     * 送货时间
     **/
    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    /**
     * 退货原因
     **/
    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    /**
     * 送达时间
     **/
    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * 交易订单
     **/
    public String getPayOrderkid() {
        return payOrderkid;
    }

    public void setPayOrderkid(String payOrderkid) {
        this.payOrderkid = payOrderkid;
    }

    /**
     * 订单名称
     **/
    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    /**
     * 距离
     *
     * @return
     */
    public Double getDistance() {
        return distance;
    }

    public void setDistance(Double distance) {
        this.distance = distance;
    }

    public Date getPlannedDeliveryTime() {
        return plannedDeliveryTime;
    }

    public void setPlannedDeliveryTime(Date plannedDeliveryTime) {
        this.plannedDeliveryTime = plannedDeliveryTime;
    }

    public int getRefunds() {
        return refunds;
    }

    public void setRefunds(int refunds) {
        this.refunds = refunds;
    }

    public Double getUlng() {
        return ulng;
    }

    public void setUlng(Double ulng) {
        this.ulng = ulng;
    }

    public Double getUlat() {
        return ulat;
    }

    public void setUlat(Double ulat) {
        this.ulat = ulat;
    }

    public Date getApplyReturnTime() {
        return applyReturnTime;
    }

    public void setApplyReturnTime(Date applyReturnTime) {
        this.applyReturnTime = applyReturnTime;
    }

    public Integer getBackOrderState() {
        return backOrderState;
    }

    public void setBackOrderState(Integer backOrderState) {
        this.backOrderState = backOrderState;
    }

    public BigDecimal getBussGetMoney() {
        return bussGetMoney;
    }

    public void setBussGetMoney(BigDecimal bussGetMoney) {
        this.bussGetMoney = bussGetMoney;
    }

    public BigDecimal getPlatformGetMoney() {
        return platformGetMoney;
    }

    public void setPlatformGetMoney(BigDecimal platformGetMoney) {
        this.platformGetMoney = platformGetMoney;
    }

    public Integer getUserStatus() {
        return userStatus;
    }

    public void setUserStatus(Integer userStatus) {
        this.userStatus = userStatus;
    }

    public Integer getOrderType() {
        return orderType;
    }

    public void setOrderType(Integer orderType) {
        this.orderType = orderType;
    }

    public String getInvoiceHead() {
        return invoiceHead;
    }

    public void setInvoiceHead(String invoiceHead) {
        this.invoiceHead = invoiceHead;
    }

    public String getInvoiceNumber() {
        return invoiceNumber;
    }

    public void setInvoiceNumber(String invoiceNumber) {
        this.invoiceNumber = invoiceNumber;
    }

    public String getReasonRefund() {
        return reasonRefund;
    }

    public void setReasonRefund(String reasonRefund) {
        this.reasonRefund = reasonRefund;
    }

    public String getReasonImg() {
        return reasonImg;
    }

    public void setReasonImg(String reasonImg) {
        this.reasonImg = reasonImg;
    }

    public Integer getCompanyStatus() {
        return companyStatus;
    }

    public void setCompanyStatus(Integer companyStatus) {
        this.companyStatus = companyStatus;
    }

    public Integer getIsActivity() {
        return isActivity;
    }

    public void setIsActivity(Integer isActivity) {
        this.isActivity = isActivity;
    }

    public BigDecimal getRedPacketMoney() {
        return redPacketMoney;
    }

    public void setRedPacketMoney(BigDecimal redPacketMoney) {
        this.redPacketMoney = redPacketMoney;
    }

    public BigDecimal getReturnMoney() {
        return returnMoney;
    }

    public void setReturnMoney(BigDecimal returnMoney) {
        this.returnMoney = returnMoney;
    }

    public String getSingleReason() {
        return singleReason;
    }

    public void setSingleReason(String singleReason) {
        this.singleReason = singleReason;
    }

    public String getBarterReason() {
        return barterReason;
    }

    public void setBarterReason(String barterReason) {
        this.barterReason = barterReason;
    }

    public String getBarterImg() {
        return barterImg;
    }

    public void setBarterImg(String barterImg) {
        this.barterImg = barterImg;
    }

    public Integer getCompanyIsSure() {
        return companyIsSure;
    }

    public void setCompanyIsSure(Integer companyIsSure) {
        this.companyIsSure = companyIsSure;
    }
}